package org.snia.cdmi.model;

import java.util.Date;


/**
 * Represents an container.
 */
public class BaseContainer {

    /** The name of this container */
    private String name = null;

    private String accessKey = null; 
    
    /** 容器的状态 */
    private int status;
    
    /** 创建时间 */
    private Date creation = null;
    
    /** 最大的许可版本数量 */
    private int maxMumber4Version;
    
    /**
     * Create a container without any name specified
     */
    public BaseContainer() {}

    /**
     * Create a container with a name. All containers in system share a single namespace,
     * so choose a unique name for your container.
     *
     * @param name 存储容器的名称
     *            
     */
    public BaseContainer(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}
	
    public Date getCreationDate() {
        return creation;
    }

    public void setCreationDate(Date creationDate) {
        this.creation = creationDate;
    }
    
	/**
	 * @param maxMumber4Version the maxMumber4Version to set
	 */
	public void setMaxMumber4Version(int maxMumber4Version) {
		this.maxMumber4Version = maxMumber4Version;
	}

	/**
	 * @return the maxMumber4Version
	 */
	public int getMaxMumber4Version() {
		return maxMumber4Version;
	}
}
